// Decompiled by Jad v1.5.7f. Copyright 2000 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/SiliconValley/Bridge/8617/jad.html
// Decompiler options: packimports(3) 
// Source File Name:   JdbcPService.java

package com.iphaeton.persistence.spring;

import com.iphaeton.exception.PersistenceException;
import java.util.List;
import org.apache.log4j.Logger;
import org.springframework.jdbc.core.JdbcTemplate;

public class JdbcPService
{

    public JdbcPService()
    {
        jdbcTemplate = null;
    }

    public JdbcPService(JdbcTemplate jdbcTemplate)
    {
        this.jdbcTemplate = null;
        this.jdbcTemplate = jdbcTemplate;
    }

    public List query(String query)
        throws PersistenceException
    {
        return jdbcTemplate.queryForList(query);
    }

    public void execute(String updateSql)
        throws PersistenceException
    {
        jdbcTemplate.execute(updateSql);
    }

    public JdbcTemplate getSpringJdbcTemplate()
        throws PersistenceException
    {
        return jdbcTemplate;
    }

    private static Logger logger;
    private JdbcTemplate jdbcTemplate;
    

    static 
    {
        logger = Logger.getLogger(com.iphaeton.persistence.spring.JdbcPService.class.getName());
    }
}
